package com.nuedu.corejava.ch9.homework;
//3、生成十个0~100之间的随机数，放到数组中，然后排序输出。（知识点：Math类取整,获得随机数等） [必做题]
import java.util.Arrays;
import java.util.Random;

public class HomeWork3 {
	public static void main(String[] args) {
		double [] a = new double[10];
		Random random = new Random();
		for (int i = 0; i < a.length; i++) {
			a[i]=Math.round(random.nextDouble()*100);
		}
		Arrays.sort(a);
		for (double i : a) {
			System.out.println(i);
		}
		
		
	}
	

}
